﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Areas/Front/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>
<%@ Import Namespace="WEBDT.Base"  %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <table class="table" border="1">
        <thead class="thead"></thead>
        <tr>
            <th>MaSP</th>
            <th>Tên SP</th>
            <th>Đánh giá</th>
            <th>Mã Loại</th>
            <th>Nhà SX</th>
            <th>Đơn giá</th>
            <th>Số lượng</th>
            <th>Lượt xem</th>
            <th>TimeBH</th>
            <th>Action</th>
        </tr>
        <tbody class="tbody">
            <% foreach(SanPham m in (IEnumerable)ViewData.Model)
            { %>
            <tr>
                <td><%=m.MaSP %></td>
                <td><%=m.TenSP %></td>
                <td><%=m.DanhGia %></td>
                <td><%=m.MaLoai %></td>
                <td><%=m.MaNSX %></td>
                <td><%=m.DonGia %></td>
                <td><%=m.SoLuong %></td>
                <td><%=m.LuotXem %></td>
                <td><%=m.TimeBH %></td>
                <td>
                   <a href="details/<%=m.MaSP %>"><img src="../../../../Images/backround/Update.png" style="width:16px; height:16px;"/></a>
                </td>
            </tr>
            <% } %>
        </tbody>
    </table>
</asp:Content>


